home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Advisor / CD-ROM Advisor.iso / prodemo / demo / loni.dxr / 00001.ls next >
Encoding:
Text File  |  1995-09-13  |  1.3 KB  |  34 lines

  1. on startMovie
  2.   global gNameOfSoundFile, gChannelForHighButtons, gChannelForSound, gCuesForVoice, gLabelsForVoiceCues, gCountOfCues, gPreTicksForCue, gNextCueIndex, gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV, gLabelForEndScreen, gMouseDownInButton, gUseMenuButton
  3.   set gNameOfSoundFile to "Loni.AIF"
  4.   set gChannelForHighButtons to 5
  5.   set gChannelForSound to 1
  6.   set the puppet of sprite gChannelForHighButtons to 1
  7.   set the visible of sprite gChannelForHighButtons to 0
  8.   set the ink of sprite gChannelForHighButtons to 0
  9.   set gCuesForVoice to [417, 555, 628, 981, 1210, 1400, 1365, 1788, 1920, 2182, 2610, 2803]
  10.   set gLabelsForVoiceCues to ["know", "build", "every", "there", "rooms", "people", "theway", "idont", "usual", "imet", "ifyou", "made"]
  11.   set gCountOfCues to 12
  12.   set gPreTicksForCue to 55
  13.   set gRadiusOfExitButton to 32
  14.   set gCenterOfMenuH to 141
  15.   set gCenterOfMenuV to 443
  16.   set gUseMenuButton to 0
  17.   set gLabelForEndScreen to "endinfo"
  18. end
  19.  
  20. on isWithinExitButton h, v
  21.   global gRadiusOfExitButton, gCenterOfMenuH, gCenterOfMenuV
  22.   set hComp to gCenterOfMenuH - h
  23.   set vComp to gCenterOfMenuV - v
  24.   set r to sqrt((hComp * hComp) + (vComp * vComp)) < gRadiusOfExitButton
  25.   return r
  26. end
  27.  
  28. on stopSound
  29.   global gChannelForSound
  30.   if soundBusy(gChannelForSound) then
  31.     sound stop gChannelForSound
  32.   end if
  33. end
  34.